#ifndef __USART1_H
#define __USART1_H

#include "sys.h"

#define USART_REV_MAX_LEN	256

typedef struct {

    uint8_t data[USART_REV_MAX_LEN];
//    uint16_t len;
    struct {
        uint16_t len: 15;
        uint16_t sta: 1;
    } result;

} USART_REV_t;

extern USART_REV_t USART1_REV;

void USART1_Init(void);
void USART1_Tx(uint8_t* pData, uint16_t len);


#endif
